package com.xiaolin.designmode.adapter.byobject;

import com.xiaolin.designmode.adapter.bean.Old;
import com.xiaolin.designmode.adapter.bean.Target;

/**
 * @ClassName ObjectAdapter
 * @Description 对象适配器模式
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/1
 * @Version 1.0
 */
public class ObjectAdapter implements Target{
    private Old old;

    public ObjectAdapter(Old old){
        this.old=old;
    }
    @Override
    public void did() {
        old.out();
    }
}
